app.controller('authorityController', ['$scope', 'httpWrapService', 'dialogs', '$state', '$stateParams','GridFactory',
            function($scope, httpWrapService, dialogs, $state, $stateParams,GridFactory) {

    var columnDefs = [
        {name: "权限名", field: "name"},
        {name: "权限", field: "authority"} ,
        {name: "过期时间", field: "expiredDt", cellFilter : 'date : "yyyy-MM-dd"'} //,
    ];

    $scope.Grid = GridFactory.newInstance({
        url : "system/authority/list.do",
        columnDefs : columnDefs
    });
    $scope.Grid.load();

}]);